<!doctype html>
<html>
<head>
<meta charset="gbk">
<title>{{list[0].categoryId.name}}</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/public/static/css/base.css" rel="stylesheet">
<link href="/public/static/css/index.css" rel="stylesheet">
<link href="/public/static/css/m.css" rel="stylesheet">
<script src="/public/static/js/jquery.min.js" ></script>
<script src="/public/static/js/jquery.easyfader.min.js"></script>
<script src="/public/static/js/hc-sticky.js"></script>
<script src="/public/static/js/comm.js"></script>
<script src="/public/static/js/scrollreveal.js"></script>
<!--[if lt IE 9]>
<script src="/public/static/js/modernizr.js"></script>
<![endif]-->
</head>
<body>
    {{include './header.html'}}
<article>  
  <main>

    <script language="javascript"> 
var obj=null;
var As=document.getElementById('pageContents').getElementsByTagName('a');
obj = As[0];
for(i=1;i<As.length;i++){if(window.location.href.indexOf(As[i].href)>=0)
obj=As[i];}
obj.id='pagecurrent'
</script>

{{if (list==false)}}
  <p>还没有文章</p>
  {{else}}
    {{each list}}
  <div class="blogs" data-scroll-reveal="enter bottom over 1s" >
    <h3 class="blogtitle"><a href="/category{{$value.categoryId.cateid}}/{{$value._id}}" target="_blank" >{{$value.title}}</a></h3>
  <span class="blogpic"><a href="/category{{$value.categoryId.cateid}}/{{$value._id}}" title="{{$value.title}}">
    {{if $value.thumbnail}}
    <img src="{{$value.thumbnail[0]}}" alt="{{$value.title}}"></a>
    {{/if}}
    </span>
        <p class="blogtext">{{$value.content}}</p>
        <div class="bloginfo">
          <ul>
            <li class="author"></li>
            <li class="lmname"><a href="/category{{$value.categoryId.cateid}}"  target="_blank" >{{$value.categoryId.name}}</a></li>
            <li class="timer">{{$value.updateAt | timestamp}}</li>
            <li class="view"><span>{{$value.countInfo.visitCount}}</span>已阅读</li>
          </ul>
        </div>
      </div>
   {{/each}}   
{{/if}}

<style>
  .pagelist::after{
    content:"";display:table;clear:both
  }
  .pagelist .active{
    border: 1px solid #247dbb;
    padding: 10px 14px;
    background: #3690cf;
    color: #FFF;
  }
  .pagelist a, .pagelist span{float: left;font-size: 14px;padding: 10px 14px;margin-left: 4px;}
  .pagelist input {
    float: left;
    margin: 0 5px;
    width: 40px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #ebebeb;
    outline: 0;
    color: #bdbdbd;
    font-size: 14px;
}


</style>

 <script src="/public/static/js/jquery.pagination.js"></script>   
 <div class="pagelist">
  
 </div>
 <script>
   $('.pagelist').pagination({
    totalData: {{count}},
    showData: 10,
    coping: true,
    jump: true,
    isHide:true,
    current:{{page}},
    callback: function (api) {
        var data = {
            page: api.getCurrent(),
            name: 'mss',
            say: 'oh'
        };
     window.location.href='/search?keyword={{q}}&&page='+ api.getCurrent()
      }
});
 
 
 </script>
 </main>
  <aside class="r_box" >     
      <div class="tuijian">
        <h2 id="tab"><a href="#"class="current">点击排行</a><a href="#">最近更新</a><a href="#">站长推荐</a></h2>
        
     <div id="content">
        <ul style="display:block;">
            {{each clickRank}}
            <li><a href="/category{{$value.categoryId.cateid}}/{{$value.id}}" target="_blank">{{$value.title}} </a></li>
            {{/each}}
        </ul>            
        <ul>
            {{each newlist}}
            <li><a href="/category{{$value.categoryId.cateid}}/{{$value.id}}" target="_blank">{{$value.title}} </a></li>
            {{/each}}
        </ul> 
        <ul>
            {{each topRank}}
            <li><a href="/category{{$value.categoryId.cateid}}/{{$value.id}}" target="_blank">{{$value.title}} </a></li>
            {{/each}}
        </ul>
       </div>
      </div>
 <div class="wdxc">
        <h2>图文精选</h2>
        <ul>
            {{each piclist}}
            <li><a href="/category{{$value.categoryId.cateid}}/{{$value.id}}" title="【{{$value.title}}】" target="_blank"><img src="{{$value.thumbnail[0]}}"></a></li>
         {{/each}}
        </ul>
      </div>
<div class="cloud">
      <h2>标签云</h2>
      <ul>
 <a href="/e/tags/?tagname=%B8%F6%C8%CB%B2%A9%BF%CD%C4%A3%B0%E5&tempid=11" target="_blank">个人博客模板</a>      </ul>
    </div>
      <div class="guanzhu">
        <h2>关注我 Add friends</h2>
        <ul>
          <img src="/public/static/picture/wx.jpg">
        </ul>
      </div>
  </aside>
</article>
<footer>
  <p>Design by <a href="/" target="_blank">杨青个人博客</a></p>
</footer>
<a href="#" class="cd-top">Top</a>
</body>
</html>
